from django.db import models

# 学生数据模型
class Student(models.Model):
    studentID = models.CharField(max_length=10)
    name = models.CharField(max_length=10)
    age = models.PositiveSmallIntegerField()
    sex = models.CharField(max_length=6)
    score = models.PositiveSmallIntegerField()

    def __str__(self):
        return "学生 " + self.name